package com.code.hfd.decorator.io;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

public class InputTest {
    public static void main(String[] args) {
        try {
            int c ;
            InputStream in = new LowerCaseInputStream(
                    new BufferedInputStream(
                            new FileInputStream(".gitignore")));
            while ((c = in.read()) >= 0) {
                System.out.print((char) c);
            }
            in.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
